
#include<iostream>
#include <vector>
using namespace std;


void test()
{
	vector<int> v1;
	vector<int> v2(10, 2);
	vector<int> v3(v2.begin(), v2.end());

	for (size_t i = 0; i < v3.size(); i++)
	{
		cout << v3[i] << ' ';
	}
	cout << endl;
	auto it = v3.begin();
	while (it != v3.end())
	{
		cout << *it << ' ';
		++it;
	}
	cout << endl;
	for (auto n : v3)
	{
		cout << n << ' ';
	}
}

void test1()
{
	vector<int> v2(2, 2);
	vector<int> v1(v2);
	v2.reserve(10);
	cout << v1.size() << endl;
	cout << v1.capacity() << endl;

	cout << v2.size() << endl;
	cout << v2.capacity() << endl;

	v2.reserve(20);
	cout << v2.size() << endl;
	cout << v2.capacity() << endl;
	cout << v2[0] << endl;

	vector<int> v3(4, 10);
	v2.resize(20, 10);
	cout << v2.size() << endl;
	cout << v2.capacity() << endl;

	for (auto n : v2)
	{
		cout << n << ' ';
	}

}

void test2()
{
	vector<int> v(10, 1);
	v.reserve(20);

	cout << v.size() << endl;
	cout << v.capacity() << endl;

	v.resize(15, 2);
	cout << v.size() << endl;
	cout << v.capacity() << endl;

	v.resize(25, 3);
	cout << v.size() << endl;
	cout << v.capacity() << endl;
}

void test3()
{
	vector<int> v(10, 1);
	v.push_back(2);
	v.insert(v.begin(), 0);

	v.insert(v.begin() + 3, 3);


	for (auto n : v)
	{
		cout << n << ' ';
	}

	v.clear();
	int x = 0;
	cin >> x;
	v.push_back(x);

	for (auto n : v)
	{
		cout << n << ' ';
	}
}

int main()
{
	test3();

	return 0;
}